<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta name="description" content="">
    <meta name="author" content="">
    <title>乘机人</title>
    <include file="Template/head"/>
<body>
<div class="actNav">
    <div>乘机人</div>
    <a href="javascript:history.go(-1);" class="back"></a>
    <a href="{:U('Index/index')}" class="home"></a>
</div>

<div class="wapper ucenter" style="background-color: white;padding-left:15px;padding-right:15px;overflow: hidden">
    <input type="hidden" class="flightNo" value="{$flightNo}">
    <input type="hidden" class="depCode" value="{$depCode}">
    <input type="hidden" class="arrCode" value="{$arrCode}">
    <input type="hidden" class="depDate" value="{$depDate}">
    <input type="hidden" class="depTime" value="{$depTime}">
    <input type="hidden" class="arrTime" value="{$arrTime}">
    <input type="hidden" class="planeModel" value="{$planeModel}">
    <input type='hidden' class='seatCode' value='{$seatCode}'>
    <input type='hidden' class='agencyId' value='{$agencyId}'>
    <input type="hidden" class="orgJetquay" value="{$orgJetquay}">
    <input type="hidden" class="dstJetquay" value="{$dstJetquay}">
    <input type="hidden" class="arrDate" value="{$arrDate}">

    <input type="hidden" class="parPrice" value="{$parPrice}">
    <input type="hidden" class="settlePrice" value="{$settlePrice}">
    <input type="hidden" class="airportTax" value="{$airportTax}">
    <input type="hidden" class="fuelTax" value="{$fuelTax}">
    <input type="hidden" class="type" value="{$type}">
    <input type="hidden" class="policyId" value="{$policyId}">

    <input type="hidden" class="flightOrderCreate" value="{$Think.session.flightOrderCreate}">
    <input type="hidden" class="createUrl" value="{:U('Flight/orderCreate')}">
    <input type="hidden" class="addUrl" value="{:U('Flight/addFrequentPassenger')}">

    <input type="button" class="btn btn-success btn-block addFrequentPassenger" value="新增乘机人"
           style="margin-top:10px;margin-bottom: 15px;">

    <if condition="$list[0]['passenger_name'] neq ''">
        <input type="button" class="btn btn-success btn-block submitPassengerInfo" value="确定"
               style="margin-top:10px;margin-bottom: 15px;">
    </if>


    <foreach name="list" item="vo">
        <div class="row" style="padding-top: 10px;">
            <div class="col-xs-1 col-md-1">
                <if condition="$vo['passenger_type'] eq 0">
                    <input type="checkbox" name="passengerId" value="{$vo.id}" class="adultCheckBox"
                    <if condition="$vo['is_checked'] eq 1">checked</if>
                    >
                <else/>
                    <input type="checkbox" name="passengerId" class="childCheckBox" value="{$vo.id}"
                    <if condition="$vo['is_checked'] eq 1">checked</if>
                    >
                </if>
            </div>
            <div class="col-xs-8 col-md-7">
                <b>
                    <if condition="$vo['passenger_type'] eq 1">
                        <span style="color: #239259">*</span>
                    </if>
                    {$vo.passenger_name}<!--{$seatCode}--></b>
            </div>
            <input type="hidden" class="editUrl" value="{:U('Flight/addFrequentPassenger')}">

            <div class="col-xs-3 col-md-4 glyphicon glyphicon-pencil editPassenger"
                 style="color: #239259;"><input type="hidden" class="id" value="{$vo.id}">
            </div>
        </div>

        <div class="row" style="border-bottom: 1px solid #d0d0d0;padding-bottom: 10px;">
            <div class="col-xs-1"></div>
            <div class="col-xs-3 col-md-3">
                <if condition="$vo['identity_type'] eq 1">身份证
                    <elseif condition="$vo['identity_type'] eq 2"/>
                    护照
                    <elseif condition="$vo['identity_type'] eq 3"/>
                    军官证
                    <elseif condition="$vo['identity_type'] eq 4"/>
                    士兵证
                    <elseif condition="$vo['identity_type'] eq 5"/>
                    台胞证
                    <elseif condition="$vo['identity_type'] eq 6"/>
                    港澳通行证
                </if>
            </div>
            <div class="col-xs-6">
                {$vo.identity_no}
            </div>
        </div>
    </foreach>


    <div class="modal fade popWin bs-example-modal-sm" id="myModalmob" tabindex="-1" role="dialog"
         aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog modal-sm">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                            aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title text-center" id="myModalLabel">温馨提示</h4>
                </div>
                <div class="modal-body text-center">
                    <p class="tipsBox"><i class="suc">亲，您最多可以添加6位乘机人</i></p>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-warning doSubmitWarning" data-dismiss="modal"
                            aria-label="Close">确认
                    </button>
                </div>
            </div>
        </div>
    </div>
    <p></p>
    <footer class="footer">
        <include file="Template/foot"/>
        <script src="__PUBLIC__/js/flightOrderInfo.js?v=2"></script>
    </footer>
</div>
</body>
</html>
